<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>凯胜项目管理系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css" type="text/css" />
	<link rel="stylesheet" href="static/css/style.css" type="text/css" />
	<style type="text/css">
		body{
			background-image:url("static/img/bg_main.jpg");
		}
	</style>
</head>
<body class="body">
	<%@ include file="include/top2.jsp" %>
	<br /><br /><br />
	<div class="container">
		<div class="row">
			<div class="span9">
			<c:choose>
			<c:when test="${up.role =='worker' }">
				<div>
					<p style="color:red; font-size=16px;">你没有权限添加目标！</p>
				</div>
			</c:when>
			<c:otherwise>
				<form action="goal.jspx?m=add" class="form-horizontal" method="post">
				<input type="hidden" name="m" value="create"/>
					<fieldset>
					<legend>添加一个新目标</legend>
					<div class="control-group">
						<label for="input01" class="control-label">目标名称</label>
						<div class="controls">
							<input id="input01" class="span5" name="goalname" type="text" x-webkit-speech="undefined" placeholder="请输入项目名称">
							<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
						</div>				
					</div>
					<div class="control-group">
						<label class="control-label" for="input01" >目标描述</label>
						<div class="controls">
							<textarea class="span5" name="goalcontent" rows="8" placeholder="请对项目进行简单的描述" ></textarea>
						</div>
					</div>
					<div class="form-actions">
						<button class="btn btn-primary" type="submit">保存</button>
						<button class="btn" onclick="location.back()">返回</button>
					</div>
					</fieldset>
				</form>
				</c:otherwise>
				</c:choose>
			</div>
		</div>
	</div>
</body>
</html>
